home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / tcl / dist / Makefile < prev    next >
Encoding:
Makefile  |  1992-05-13  |  1.8 KB  |  64 lines

  1. #
  2. # This Makefile is for use when distributing Tcl to the outside world.
  3. # It is normally set up by running the "config" script.  Before modifying
  4. # this file by hand, you should read through the "config" script to see
  5. # what it does.
  6. #
  7. # Some changes you may wish to make here:
  8. #
  9. # 1. To compile for non-UNIX systems (so that only the non-UNIX-specific
  10. # commands are available), change the OBJS line below so it doesn't
  11. # include ${UNIX_OBJS}.  Also, add the switch "-DTCL_GENERIC_ONLY" to
  12. # CFLAGS.  Lastly, you'll have to provide your own replacement for the
  13. # "panic" procedure (see panic.c for what the current one does).
  14. #
  15. # 2. ANSI-C procedure prototypes are turned on by default if supported
  16. # by the compiler.  To turn them off, add "-DNO_PROTOTYPE" to CFLAGS
  17. # below.
  18. #
  19. # 3. If you've put the Tcl script library in a non-standard place, change
  20. # the definition of TCL_LIBRARY to correspond to its location on your
  21. # system.
  22. #
  23.  
  24. TCL_LIBRARY =    /usr/local/lib/tcl
  25.  
  26. CC =        cc
  27. CFLAGS =    -g -I. -DTCL_LIBRARY=\"${TCL_LIBRARY}\"
  28.  
  29. GENERIC_OBJS =    regexp.o tclAssem.o tclBasic.o tclCkalloc.o \
  30.     tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclExpr.o tclGet.o \
  31.     tclHash.o tclHistory.o tclParse.o tclProc.o tclUtil.o \
  32.     tclVar.o
  33.  
  34. UNIX_OBJS = panic.o tclEnv.o tclGlob.o tclUnixAZ.o tclUnixStr.o \
  35.     tclUnixUtil.o 
  36.  
  37. COMPAT_OBJS =
  38.  
  39. OBJS = ${GENERIC_OBJS} ${UNIX_OBJS} ${COMPAT_OBJS}
  40.  
  41. libtcl.a: ${OBJS}
  42.     rm -f libtcl.a
  43.     ar cr libtcl.a ${OBJS}
  44.     ranlib libtcl.a
  45.  
  46. tclTest: tclTest.o libtcl.a
  47.     ${CC} ${CFLAGS} tclTest.o libtcl.a -o tclTest
  48.  
  49. test: tclTest
  50.     ( echo cd tests ; echo source all ) | ./tclTest
  51.  
  52. clean:
  53.     rm -f ${OBJS} libtcl.a tclTest.o tclTest
  54.  
  55. # The following target is used during configuration to compile
  56. # a test program to see if certain facilities are available on
  57. # the system.
  58.  
  59. configtest:
  60.     ${CC} ${CFLAGS} test.c
  61.  
  62. ${OBJS}: tcl.h tclHash.h tclInt.h
  63. ${UNIX_OBJS}: tclUnix.h
  64.